﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeChatSDK.Core.Models
{
    public class PictureUserMessageModel : UserMessageModel
    {
        public string PicUrl { get; set; }
        public string MediaId { get; set; }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("<xml>");
            sb.Append(string.Format("<ToUserName>{0}</ToUserName>", this.ToUserName));
            sb.Append(string.Format("<FromUserName>{0}</FromUserName>", this.FromUserName));
            sb.Append(string.Format("<CreateTime>{0}</CreateTime>", this.CreateTime));
            sb.Append(string.Format("<MsgType>{0}</MsgType>", this.MsgType));
            sb.Append(string.Format("<Image><MediaId>{0}</ MediaId ></Image>", this.MediaId));
            sb.Append("</xml>");
            return sb.ToString();
        }
    }
}
